# filename_1=mycdev  file_test=test.c  arch=arm (x86)
# readme  入参  ./sh arm   ./sh x86  需要修改这俩编的文件


IP=`ifconfig | grep inet | grep -vE 'inet6|127.0.0.1' | awk '{print $2}'`

echo "IP地址"$IP


if [ $IP = "192.168.250.100" ]; then
    rm tes
    # rm pro
    # arm-linux-gnueabihf-gcc Iot_app.c project.c  -l pthread -o pro
    make
    echo "这个是ubantu 执行编译程序"
    arm-linux-gnueabihf-gcc test.c -o tes
    # arm-linux-gnueabihf-gcc tes.c -o tes
else
    echo "这个是开发板子"

    # ps |grep pro
    # killall pro
    # echo "=============killall=========="
    # ps |grep pro
    # ./pro
    # ps |grep pro
fi
